<template>
  <el-table-column
    :prop="prop"
    :label="label"
    :align="align"
    :min-width="minWidth"
  >
    <template v-slot="{row}">
      <div
        v-for="item in row[arrKey]"
        :key="item.id"
      >
        {{item[prop] || '-'}}
      </div>
    </template>
  </el-table-column>
</template>

<script>
export default {
  name: "MLCodeListColumn",
  props:{
    prop: {
      type: String,
      default: 'inventoryId',
    },
    arrKey: {
      type: String,
      default: 'goodsList'
    },
    label: {
      type: String,
      default: 'MLCode',
    },
    align: {
      type: String,
      default: 'left',
    },
    minWidth: {
      type: String,
      default: '120',
    },
  },
}
</script>

<style scoped lang="scss">

</style>
